package demo1;

public class test {
    public static void main1(String[] args) {
        MySingleList mySingleList = new MySingleList();
        /*mySingleList.creatList();*/
        mySingleList.addFirst(66);
        mySingleList.addFirst(89);
        mySingleList.addFirst(1);
        mySingleList.addFirst(1);
        mySingleList.show();
       /* mySingleList.reverseList();*/
        /*mySingleList.addLast(90);*/
        MySingleList.ListNode ret = mySingleList.FindKthToTail(3);
        System.out.println(ret.val);
        /*try{
            mySingleList.addIndex(31,99);
        }catch (IndexOutOfBounds indexOutOfBounds){
            indexOutOfBounds.printStackTrace();
        }*/
       /* mySingleList.addIndex(2,47);
        mySingleList.show();
        mySingleList.remove(90);
        mySingleList.show();
        mySingleList.removeAllkay(1);
        mySingleList.show();
        mySingleList.clear();
        System.out.println(mySingleList.size());
        System.out.println(mySingleList.contains(12));
        System.out.println(mySingleList.contains(78));*/

    }


}
